﻿<%@ WebHandler Language="C#" Class="AjaxNavigation" %>

using System;
using System.Web;
using System.Collections.Generic;
using System.Xml;
using OurWeb.BLL;
using OurWeb.Model;


public class AjaxNavigation : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        //context.Response.ContentType = "text/xml";
        //context.Response.Charset = "UTF-8";
        //XmlDocument doc = new XmlDocument();
        //string xmlPath = "~/App_Data/navi.xml";
        //doc.Load(HttpContext.Current.Server.MapPath(xmlPath));
        //string str = doc.DocumentElement.OuterXml;
        //context.Response.Write(str);
        IList<NaviInfo> naviInfoList = Navigation.GetNavigation();
        foreach (NaviInfo navi in naviInfoList)
        { 
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}